package rad.framework.mda.generator.template.main.resources.metainf;

public class Orm
{
  protected static String nl;
  public static synchronized Orm create(String lineSeparator)
  {
    nl = lineSeparator;
    Orm result = new Orm();
    nl = null;
    return result;
  }

  public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl;
  protected final String TEXT_1 = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" + NL + "<entity-mappings xmlns=\"http://java.sun.com/xml/ns/persistence/orm\"" + NL + "               xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"" + NL + "               xsi:schemaLocation=\"http://java.sun.com/xml/ns/persistence/orm http://java.sun.com/xml/ns/persistence/orm_1_0.xsd\"" + NL + "               version=\"1.0\">" + NL + "               " + NL + "  <persistence-unit-metadata>          " + NL + "    <persistence-unit-defaults>          " + NL + "\t  <entity-listeners>" + NL + "\t    <entity-listener class=\"rad.framework.trace.TraceCallbackListener\"/>" + NL + "\t    <!--" + NL + "\t    <entity-listener class=\"rad.framework.security.jpa.MutatePermissionCallbackListener\"/>" + NL + "\t    <entity-listener class=\"rad.framework.security.encryption.EncryptionCallbackListener\"/>" + NL + "\t    -->" + NL + "\t  </entity-listeners>" + NL + "    </persistence-unit-defaults>          " + NL + "  </persistence-unit-metadata>          " + NL + "" + NL + "</entity-mappings>";
  protected final String TEXT_2 = NL;

  public String generate(Object argument)
  {
    final StringBuffer stringBuffer = new StringBuffer();
    stringBuffer.append(TEXT_1);
    stringBuffer.append(TEXT_2);
    return stringBuffer.toString();
  }
}
